package week02.log;

/**
 * Created by zhangxiaokun on 2018/1/31.
 */
public class TestLog {
    public static void main(String[] args) {
        LogFactory factory = new FileLogFactory();
        Log fileLog = factory.createLog();
        fileLog.writeLog();

        DatabaseLogFactory databaseFactory = new DatabaseLogFactory();
        Log databaseLog = databaseFactory.createLog();
        databaseLog.log();
    }
}
